gtk4.git
15 years agoGtkWidget: unset NULL properties when overriding style.
Carlos Garnacho [Mon, 29 Nov 2010 10:27:43 +0000 (11:27 +0100)]
GtkWidget: unset NULL properties when overriding style.

15 years agoGtkThemingEngine: Render gradients in tabs.
Carlos Garnacho [Mon, 29 Nov 2010 10:25:09 +0000 (11:25 +0100)]
GtkThemingEngine: Render gradients in tabs.

Background will be actually rotated in tabs, so the "bottom" side coincides
with the junction point, this makes gradients work as expected in rotated tabs.

15 years agoGtkThemingEngine: split background rendering to a private function.
Carlos Garnacho [Mon, 29 Nov 2010 10:24:04 +0000 (11:24 +0100)]
GtkThemingEngine: split background rendering to a private function.

15 years agoGtkStyle: Commit a few typos when translating states.
Carlos Garnacho [Fri, 26 Nov 2010 00:27:19 +0000 (01:27 +0100)]
GtkStyle: Commit a few typos when translating states.

15 years agodocs: gtk_style_context_get_screen() always returns a valid screen
Carlos Garcia Campos [Fri, 26 Nov 2010 08:07:41 +0000 (09:07 +0100)]
docs: gtk_style_context_get_screen() always returns a valid screen

15 years agoCheck screen really changed before notifying it and invalidating the context
Carlos Garcia Campos [Fri, 26 Nov 2010 08:01:17 +0000 (09:01 +0100)]
Check screen really changed before notifying it and invalidating the context

15 years agoInitialize screen of GtkStyleContext to default screen
Carlos Garcia Campos [Fri, 26 Nov 2010 07:59:10 +0000 (08:59 +0100)]
Initialize screen of GtkStyleContext to default screen

15 years agoAdd explanation to failing test
Matthias Clasen [Fri, 26 Nov 2010 07:35:38 +0000 (02:35 -0500)]
Add explanation to failing test

15 years agoAdd a testcase a problem with style property handling
Matthias Clasen [Fri, 26 Nov 2010 07:29:56 +0000 (02:29 -0500)]
Add a testcase a problem with style property handling

15 years agoAllow images for background-image
Matthias Clasen [Fri, 26 Nov 2010 05:43:16 +0000 (00:43 -0500)]
Allow images for background-image

In addition to -gtk-gradient(...), allow url(path), and create
a pattern from the image. Still to do: allow stretch/repeat options.

15 years agoAdd list of classes and regions to the docs
Matthias Clasen [Fri, 26 Nov 2010 04:49:07 +0000 (23:49 -0500)]
Add list of classes and regions to the docs

15 years agoAvoid compiler warnings
Matthias Clasen [Fri, 26 Nov 2010 04:46:15 +0000 (23:46 -0500)]
Avoid compiler warnings

15 years agoDon't add class "scrollbar" for every trough
Matthias Clasen [Fri, 26 Nov 2010 02:47:46 +0000 (21:47 -0500)]
Don't add class "scrollbar" for every trough

Turns out "trough" as a detail string is used in a variety
of widgets, not all of which are scrollbars.

15 years agoTrivial doc fixes
Matthias Clasen [Fri, 26 Nov 2010 01:48:52 +0000 (20:48 -0500)]
Trivial doc fixes

15 years agoSome header cleanups
Matthias Clasen [Fri, 26 Nov 2010 01:39:53 +0000 (20:39 -0500)]
Some header cleanups

Move GtkGradient to their own files, also move GtkBorder out of
gtkstyle.h, so that header can be all deprecated.

15 years agoAdd deprecation notes
Matthias Clasen [Thu, 25 Nov 2010 19:38:02 +0000 (14:38 -0500)]
Add deprecation notes

15 years agoInitial attempt at deprecating GtkStyle api
Matthias Clasen [Thu, 25 Nov 2010 19:26:39 +0000 (14:26 -0500)]
Initial attempt at deprecating GtkStyle api

This will probably need some finetuning.

15 years agoForgotten files
Matthias Clasen [Thu, 25 Nov 2010 17:50:17 +0000 (12:50 -0500)]
Forgotten files

15 years agoMake tests compile without using GtkStyle api
Matthias Clasen [Thu, 25 Nov 2010 17:49:16 +0000 (12:49 -0500)]
Make tests compile without using GtkStyle api

15 years agoPort gtk3-demo to GtkStyleContext
Matthias Clasen [Thu, 25 Nov 2010 03:40:19 +0000 (22:40 -0500)]
Port gtk3-demo to GtkStyleContext

15 years agoFix memory handling when dealing with colors
Matthias Clasen [Thu, 25 Nov 2010 02:28:42 +0000 (21:28 -0500)]
Fix memory handling when dealing with colors

15 years agoImprove the migration guide
Matthias Clasen [Thu, 25 Nov 2010 02:09:23 +0000 (21:09 -0500)]
Improve the migration guide

Add some hints about dealing with colors.

15 years agoDeprecate gtk_icon_info_load_symbolic_for_style
Matthias Clasen [Thu, 25 Nov 2010 00:57:10 +0000 (19:57 -0500)]
Deprecate gtk_icon_info_load_symbolic_for_style

We might end removing it altogether since it is a bit silly to have
Since: 3.0
Deprecated: 3.0

15 years agoGtkSpinner: Use style context for rendering.
Carlos Garnacho [Wed, 24 Nov 2010 22:25:14 +0000 (23:25 +0100)]
GtkSpinner: Use style context for rendering.

Animation is now handled by the theming layer, a looping animation
has been defined in the default CSS to handle active spinners.

15 years agoGtkStyleContext: handle prelight transitions
Carlos Garnacho [Wed, 24 Nov 2010 22:21:28 +0000 (23:21 +0100)]
GtkStyleContext: handle prelight transitions

15 years agoGtkThemingEngine: Handle prelight transitions in render_layout()
Carlos Garnacho [Wed, 24 Nov 2010 22:21:03 +0000 (23:21 +0100)]
GtkThemingEngine: Handle prelight transitions in render_layout()

15 years agoGtkThemingEngine: Also render topright and bottomleft corners if junction sides say so
Carlos Garnacho [Wed, 24 Nov 2010 22:20:15 +0000 (23:20 +0100)]
GtkThemingEngine: Also render topright and bottomleft corners if junction sides say so

15 years agoInitialize all looping, active state transitions on map()
Carlos Garnacho [Wed, 24 Nov 2010 22:17:46 +0000 (23:17 +0100)]
Initialize all looping, active state transitions on map()

This allows widgets to gtk_widget_set_state_flags() before mapping
and have animations started anyway when this happens.

15 years agoAdd #define for the "spinner" style class
Carlos Garnacho [Wed, 24 Nov 2010 22:00:47 +0000 (23:00 +0100)]
Add #define for the "spinner" style class

15 years agoGtkStyleContext: store layout extents for animation purposes.
Carlos Garnacho [Wed, 24 Nov 2010 21:57:18 +0000 (22:57 +0100)]
GtkStyleContext: store layout extents for animation purposes.

15 years agoGtkStyleContext: Only allow looping transitions for states being turned on.
Carlos Garnacho [Wed, 24 Nov 2010 21:56:53 +0000 (22:56 +0100)]
GtkStyleContext: Only allow looping transitions for states being turned on.

15 years agoGtkStyleContext: Stop animations if the window is gone.
Carlos Garnacho [Wed, 24 Nov 2010 21:53:36 +0000 (22:53 +0100)]
GtkStyleContext: Stop animations if the window is gone.

15 years agoGtkThemingEngine: render square corner if the gap is too close on render_frame_gap()
Carlos Garnacho [Wed, 24 Nov 2010 15:23:37 +0000 (16:23 +0100)]
GtkThemingEngine: render square corner if the gap is too close on render_frame_gap()

15 years agoUse gtk_icon_info_load_symbolic_for_context
Matthias Clasen [Wed, 24 Nov 2010 20:37:36 +0000 (15:37 -0500)]
Use gtk_icon_info_load_symbolic_for_context

gtk_icon_info_load_symbolic_for_style is going to be deprecated.

15 years agoAdd a GtkStyleContext-variant of symbolic icon loading
Matthias Clasen [Wed, 24 Nov 2010 19:40:31 +0000 (14:40 -0500)]
Add a GtkStyleContext-variant of symbolic icon loading

15 years agoSome tweaks for the GtkStyleContext migration guide
Matthias Clasen [Wed, 24 Nov 2010 06:01:31 +0000 (01:01 -0500)]
Some tweaks for the GtkStyleContext migration guide

15 years agoAdd illustration to gtk_render_handle docs
Matthias Clasen [Wed, 24 Nov 2010 04:16:22 +0000 (23:16 -0500)]
Add illustration to gtk_render_handle docs

15 years agoSmall doc addition
Matthias Clasen [Wed, 24 Nov 2010 04:02:30 +0000 (23:02 -0500)]
Small doc addition

15 years agoAdd a frame-gap illustration
Matthias Clasen [Wed, 24 Nov 2010 03:55:52 +0000 (22:55 -0500)]
Add a frame-gap illustration

15 years agoImprove frame-gap drawing
Matthias Clasen [Wed, 24 Nov 2010 03:51:40 +0000 (22:51 -0500)]
Improve frame-gap drawing

Instead of overdrawing the gap with bg-color, clip it away.

15 years agoFix another parameter mismatch
Matthias Clasen [Wed, 24 Nov 2010 01:50:45 +0000 (20:50 -0500)]
Fix another parameter mismatch

15 years agoFix up symbol list for docs
Matthias Clasen [Wed, 24 Nov 2010 01:49:18 +0000 (20:49 -0500)]
Fix up symbol list for docs

15 years agofix parameter name mismatch
Matthias Clasen [Wed, 24 Nov 2010 01:46:20 +0000 (20:46 -0500)]
fix parameter name mismatch

15 years agoForgotten file
Matthias Clasen [Tue, 23 Nov 2010 23:01:21 +0000 (18:01 -0500)]
Forgotten file

15 years agoGtkButton: Remove unneeded gtk_style_context_notify_state_change() calls
Carlos Garnacho [Wed, 24 Nov 2010 02:04:20 +0000 (03:04 +0100)]
GtkButton: Remove unneeded gtk_style_context_notify_state_change() calls

There is now code to handle this for one-item widgets (such as GtkButton)
in gtk_widget_set_state_flags()

15 years agoGtkCheckButton: Look active when the pointer button is pressed and hovering
Carlos Garnacho [Wed, 24 Nov 2010 02:02:49 +0000 (03:02 +0100)]
GtkCheckButton: Look active when the pointer button is pressed and hovering

15 years agoGtkStyleContext: Handle empty areas when coalescing invalidation regions.
Carlos Garnacho [Wed, 24 Nov 2010 02:02:01 +0000 (03:02 +0100)]
GtkStyleContext: Handle empty areas when coalescing invalidation regions.

15 years agoGtkToggleButton: Make it able to be prelight and active at the same time.
Carlos Garnacho [Wed, 24 Nov 2010 01:10:28 +0000 (02:10 +0100)]
GtkToggleButton: Make it able to be prelight and active at the same time.

15 years agoGtkComboBox: Use style context for rendering
Carlos Garnacho [Wed, 24 Nov 2010 00:31:53 +0000 (01:31 +0100)]
GtkComboBox: Use style context for rendering

15 years agoLet gtk_widget_get_path() correct early calls during init().
Carlos Garnacho [Wed, 24 Nov 2010 00:30:59 +0000 (01:30 +0100)]
Let gtk_widget_get_path() correct early calls during init().

15 years agoGtkCssProvider: Handle unfocused label selections in default CSS.
Carlos Garnacho [Wed, 24 Nov 2010 00:25:58 +0000 (01:25 +0100)]
GtkCssProvider: Handle unfocused label selections in default CSS.

15 years agoGtkLabel: Use style context for rendering.
Carlos Garnacho [Wed, 24 Nov 2010 00:24:46 +0000 (01:24 +0100)]
GtkLabel: Use style context for rendering.

15 years agoGtkThemingEngine: Draw 3D-like effects on square frames with lines.
Carlos Garnacho [Wed, 24 Nov 2010 00:19:06 +0000 (01:19 +0100)]
GtkThemingEngine: Draw 3D-like effects on square frames with lines.

15 years agoGtkThemingEngine: Render rounded frames with light/shadow connections at 45°
Carlos Garnacho [Wed, 24 Nov 2010 00:17:44 +0000 (01:17 +0100)]
GtkThemingEngine: Render rounded frames with light/shadow connections at 45°

15 years agoGtkThemingEngine: don't overshoot when rendering frames.
Carlos Garnacho [Wed, 24 Nov 2010 00:16:15 +0000 (01:16 +0100)]
GtkThemingEngine: don't overshoot when rendering frames.

15 years agoGtkStyle: Return the default icon set if no context is attached.
Carlos Garnacho [Wed, 24 Nov 2010 00:13:27 +0000 (01:13 +0100)]
GtkStyle: Return the default icon set if no context is attached.

15 years agoGtkStyle: Do not warn if attach count == 0
Carlos Garnacho [Wed, 24 Nov 2010 00:11:26 +0000 (01:11 +0100)]
GtkStyle: Do not warn if attach count == 0

This is going go happen more and more often now, as realize handlers start
removing the gtk_widget_style_attach() calls.

15 years agoGtkCssProvider: Add a default border color for insensitive elements.
Carlos Garnacho [Wed, 24 Nov 2010 00:10:38 +0000 (01:10 +0100)]
GtkCssProvider: Add a default border color for insensitive elements.

15 years agoIllustrate extension rendering
Matthias Clasen [Tue, 23 Nov 2010 23:00:43 +0000 (18:00 -0500)]
Illustrate extension rendering

15 years agoAdd slider illustration
Matthias Clasen [Tue, 23 Nov 2010 22:38:28 +0000 (17:38 -0500)]
Add slider illustration

15 years agoAdd an activity example
Matthias Clasen [Tue, 23 Nov 2010 22:00:20 +0000 (17:00 -0500)]
Add an activity example

This doesn't work, since it trips up on num-steps not being
available for GtkEventBox.

15 years agoAdd examples for frame rendering
Matthias Clasen [Tue, 23 Nov 2010 21:35:28 +0000 (16:35 -0500)]
Add examples for frame rendering

15 years agoAtempt to fix stretched 9slice rendering
Matthias Clasen [Tue, 23 Nov 2010 21:14:13 +0000 (16:14 -0500)]
Atempt to fix stretched 9slice rendering

15 years agoFix handling of junctions in frame drawing code
Matthias Clasen [Tue, 23 Nov 2010 21:13:15 +0000 (16:13 -0500)]
Fix handling of junctions in frame drawing code

15 years agoAdd a background example to the docs
Matthias Clasen [Tue, 23 Nov 2010 18:36:44 +0000 (13:36 -0500)]
Add a background example to the docs

15 years agoTest some wilder names for classes, etc
Matthias Clasen [Tue, 23 Nov 2010 18:34:48 +0000 (13:34 -0500)]
Test some wilder names for classes, etc

15 years agoAllow digits in selectors and values, where appropriate
Matthias Clasen [Tue, 23 Nov 2010 18:34:28 +0000 (13:34 -0500)]
Allow digits in selectors and values, where appropriate

15 years agoAdd the style example code used to generate illustrations
Matthias Clasen [Tue, 23 Nov 2010 16:30:17 +0000 (11:30 -0500)]
Add the style example code used to generate illustrations

15 years agoSome more images for gtk_render docs
Matthias Clasen [Tue, 23 Nov 2010 16:20:29 +0000 (11:20 -0500)]
Some more images for gtk_render docs

15 years agoDeclare transition and border-image properties to be writeonly
Matthias Clasen [Tue, 23 Nov 2010 13:24:49 +0000 (08:24 -0500)]
Declare transition and border-image properties to be writeonly

We don't make the types of their values public, so getting their
values is useless and will leak.

15 years agoImprove some gtk_render_ docs
Matthias Clasen [Tue, 23 Nov 2010 06:05:11 +0000 (01:05 -0500)]
Improve some gtk_render_ docs

With pictures !!

15 years agoDocument predefined style provider priorites
Matthias Clasen [Tue, 23 Nov 2010 04:01:27 +0000 (23:01 -0500)]
Document predefined style provider priorites

Also, rename GTK_STYLE_PROVIDER_PRIORITY_DEFAULT to _THEME and
use it for themes.

15 years agoFix doc formatting
Matthias Clasen [Tue, 23 Nov 2010 03:39:20 +0000 (22:39 -0500)]
Fix doc formatting

15 years agoFix resize grip drawing
Matthias Clasen [Tue, 23 Nov 2010 03:37:19 +0000 (22:37 -0500)]
Fix resize grip drawing

There was some confusion about junctions...

15 years agoFix GtkRadioButton drawing
Matthias Clasen [Tue, 23 Nov 2010 02:04:18 +0000 (21:04 -0500)]
Fix GtkRadioButton drawing

15 years agoMake unfocused selections visible in entries
Matthias Clasen [Tue, 23 Nov 2010 01:55:02 +0000 (20:55 -0500)]
Make unfocused selections visible in entries

15 years agoMake expanders prelight
Matthias Clasen [Mon, 22 Nov 2010 23:56:10 +0000 (18:56 -0500)]
Make expanders prelight

15 years agoRewrite GtkInfoBar color handling to bypass GtkStyle
Matthias Clasen [Mon, 22 Nov 2010 22:14:45 +0000 (17:14 -0500)]
Rewrite GtkInfoBar color handling to bypass GtkStyle

This avoids a segfault that was happening due to the recursion
detection not working anymore with the old way of doing things.

15 years agoGtkCssProvider: Render inconsistent toggle buttons differently.
Carlos Garnacho [Mon, 22 Nov 2010 20:47:11 +0000 (21:47 +0100)]
GtkCssProvider: Render inconsistent toggle buttons differently.

15 years agoGtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.
Carlos Garnacho [Mon, 22 Nov 2010 20:46:12 +0000 (21:46 +0100)]
GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.

15 years agoGtkCssProvider: Use 1px border width for spinbutton buttons.
Carlos Garnacho [Mon, 22 Nov 2010 20:45:15 +0000 (21:45 +0100)]
GtkCssProvider: Use 1px border width for spinbutton buttons.

15 years agoGtkCssProvider: Render radio and check boxes framess in menus.
Carlos Garnacho [Mon, 22 Nov 2010 20:44:36 +0000 (21:44 +0100)]
GtkCssProvider: Render radio and check boxes framess in menus.

15 years agoGtkCssProvider: use selected fg/bg for selected menu items in CSS.
Carlos Garnacho [Mon, 22 Nov 2010 20:43:44 +0000 (21:43 +0100)]
GtkCssProvider: use selected fg/bg for selected menu items in CSS.

15 years agoGtkCssProvider: Draw frame around menubars and toolbars in default CSS.
Carlos Garnacho [Mon, 22 Nov 2010 20:42:30 +0000 (21:42 +0100)]
GtkCssProvider: Draw frame around menubars and toolbars in default CSS.

15 years agoMore documentation reshuffling
Matthias Clasen [Mon, 22 Nov 2010 20:12:42 +0000 (15:12 -0500)]
More documentation reshuffling

15 years agoTweak wording
Matthias Clasen [Mon, 22 Nov 2010 16:18:27 +0000 (11:18 -0500)]
Tweak wording

15 years agoDocument border images better
Matthias Clasen [Mon, 22 Nov 2010 16:15:47 +0000 (11:15 -0500)]
Document border images better

15 years agoMake url parsing work for slices
Matthias Clasen [Mon, 22 Nov 2010 14:03:07 +0000 (09:03 -0500)]
Make url parsing work for slices

The border-image parsing code relies on parse_path_str to return
a meaningful end_ptr in case of success, too.

15 years agoFix Gtk9Slice creation
Matthias Clasen [Mon, 22 Nov 2010 12:24:41 +0000 (07:24 -0500)]
Fix Gtk9Slice creation

15 years agoAllow / in values
Matthias Clasen [Mon, 22 Nov 2010 12:23:18 +0000 (07:23 -0500)]
Allow / in values

Otherwise, using url(path) on the right-hand side of properties
is not going to work.

15 years agoAdd some images to the docs
Matthias Clasen [Mon, 22 Nov 2010 06:41:45 +0000 (01:41 -0500)]
Add some images to the docs

Add graphs for the transition functions and gradient examples.

15 years agoGtkWidgetPath documentation tweaks
Matthias Clasen [Mon, 22 Nov 2010 02:50:43 +0000 (21:50 -0500)]
GtkWidgetPath documentation tweaks

15 years agoGtkStyleContext documentation tweaks
Matthias Clasen [Mon, 22 Nov 2010 02:50:12 +0000 (21:50 -0500)]
GtkStyleContext documentation tweaks

15 years agoDocument various style-related enums
Matthias Clasen [Mon, 22 Nov 2010 02:49:08 +0000 (21:49 -0500)]
Document various style-related enums

15 years agoGtkStyleContext: Use correct type for animation duration.
Carlos Garnacho [Mon, 22 Nov 2010 02:45:59 +0000 (03:45 +0100)]
GtkStyleContext: Use correct type for animation duration.

15 years agoGtkAnimationDescription: parse "loop" correctly.
Carlos Garnacho [Mon, 22 Nov 2010 02:43:56 +0000 (03:43 +0100)]
GtkAnimationDescription: parse "loop" correctly.

This sscanf parsing needs to go...

15 years agoGtkStyle: handle scales when translating the detail string.
Carlos Garnacho [Mon, 22 Nov 2010 01:40:05 +0000 (02:40 +0100)]
GtkStyle: handle scales when translating the detail string.

15 years agoGtkCssProvider: Handle progressbars.
Carlos Garnacho [Mon, 22 Nov 2010 01:39:41 +0000 (02:39 +0100)]
GtkCssProvider: Handle progressbars.

15 years agoGtkCssProvider: Do not have border-color the same than active bg-color.
Carlos Garnacho [Mon, 22 Nov 2010 01:39:11 +0000 (02:39 +0100)]
GtkCssProvider: Do not have border-color the same than active bg-color.

15 years agoGtkMenu: Use GtkStyleContext for rendering.
Carlos Garnacho [Sun, 21 Nov 2010 18:40:28 +0000 (19:40 +0100)]
GtkMenu: Use GtkStyleContext for rendering.